//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================

#ifndef __IDMANAGE_H__
#define __IDMANAGE_H__

#define IS_FAKE_OID(oid)      ((oid) < 1)
#define HASH2MASK(hs)     ((hs) - 1)

class Object;

oid_t    GenerateObjOid();
void     AddObject(Object * pObject);
Object * GetObject(oid_t oid);
ECode  DeleteObject(oid_t oid);

EXTERN_C DECL_CODEINIT void CDECL InitObjectHash();

#endif //__IDMANAGE_H__
